﻿using Jil;
using System;
namespace Athena.Serialization.Implementations
{
    public class JilJsonSerializer : ISerializer<string>
    {
        private Jil.Options _jilOptions = new Jil.Options(includeInherited: true);


        public string Serialize(object content)
        {
            return JSON.SerializeDynamic(content, _jilOptions);
        }

        public object Deserialize(string content, Type type)
        {
            return JSON.Deserialize(content, type);
        }
    }
}
